<?php

/**
 * 用户的微商城模板配置logic
 */

namespace Wechat\Logic;

class MallUserTemlatesLogic extends CommonLogic {
	
	/**
	 * 获取模板详细
	 * @param  integer $tid 模板ID
	 * @return array       当前模型详细信息
	 */
	public function detail($map){
		//$map = array('tid'=>$tid);
		$data = $this->field(true)->where($map)->find();
		if(!$data){
			$this->error = '获取详细信息出错！';
			return false;
		}
		
		$data['configs'] = serializeMysql($data['configs'],1);
		return $data;
	}
    
	
}